#ifndef TEXTCHANGE_H
#define TEXTCHANGE_H

#include "Change/change.h"

class TextChange : public Change
{
public:
	TextChange() {}
	TextChange(opType newOp, int newRev, int newUser, int newDoc, int newPos, int newNum, QString newData);
	TextChange(QByteArray bytes);		//create change from a byte array

	QByteArray toBytes();				//convert the change into a byte array

	void setNum(int newNum) {num = newNum;}
	void setData(QString newData) {data = newData;}

	int getNum() {return num;}
	QString getData() {return data;}

private:
	int num;
	QString data;
};

#endif // TEXTCHANGE_H
